# 实现计算器
def add(left, right):
    print("结果:\t" + (left + right).__str__())
    return left + right


def subtract(left, right):
    print("结果:\t" + (left - right).__str__())
    return left - right


def divide(left, right):
    print("结果:\t" + (left / right).__str__())
    return left / right


def multi(left, right):
    print("结果:\t" + (left * right).__str__())
    return left * right


left = int(input("请输入left：\t\n"))
right = int(input("请输入right：\t\n"))
symbol = input("请输入符号(0:+,1:-,2:/,3:*)：\t\n")
if symbol == "0":
    add(left, right)
if symbol == "1":
    subtract(left, right)
if symbol == "2":
    divide(left, right)
if symbol == "3":
    multi(left, right)
